package com.wsh.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
* @author 王思涵
* @date 2020-03-14
*/
@Data
@TableName("sys_dep")
public class DepartmentEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 部门状态 */
    private Boolean status;

    /** 创建时间 */
    private Date createTime;

    /** 部门主键 */
    @TableId(type = IdType.UUID)
    private String depId;

    /** 上级部门 */
    private String pid;

    /** 部门名称 */
    private String name;

    @TableField(exist = false)
    private List<DepartmentEntity> children;

}
